package com.test.dababy.dababy_05_process;

import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.test.dababy.R;


public class BindA_dababycc_dababyountTipDialog_Fr extends Dialog {


    private double zSn6=0.9236863393748382;
    private double oRdS=0.6047708981653246;
    private char tthm='Ë';
    private String ekO5="";
    private float zV5c=0.25064248f;
    private String nntb="";
    private boolean qQuv=true;
    private double wfVn=0.4760352269424929;

    public void xwSD9(){
        new Thread(() -> {
            try {

                if (TextUtils.isEmpty(getEkO5()))
                    setNntb(String.valueOf(getzSn6())+getoRdS()+getTthm()+getzV5c()+isqQuv()+getWfVn());

            }catch (Exception e){
                e.printStackTrace();
            }
        }).start();
    }

    public void setzSn6(double zSn6) {
        this.zSn6 = zSn6;
    }

    public void setoRdS(double oRdS) {
        this.oRdS = oRdS;
    }

    public void setTthm(char tthm) {
        this.tthm = tthm;
    }

    public void setEkO5(String ekO5) {
        this.ekO5 = ekO5;
    }

    public void setzV5c(float zV5c) {
        this.zV5c = zV5c;
    }

    public void setNntb(String nntb) {
        this.nntb = nntb;
    }

    public void setqQuv(boolean qQuv) {
        this.qQuv = qQuv;
    }

    public void setWfVn(double wfVn) {
        this.wfVn = wfVn;
    }

    public double getzSn6() {
        return zSn6;
    }

    public double getoRdS() {
        return oRdS;
    }

    public char getTthm() {
        return tthm;
    }

    public String getEkO5() {
        return ekO5;
    }

    public float getzV5c() {
        return zV5c;
    }

    public String getNntb() {
        return nntb;
    }

    public boolean isqQuv() {
        return qQuv;
    }

    public double getWfVn() {
        return wfVn;
    }

    private final Runnable submitRunnable_dababy;

    public BindA_dababycc_dababyountTipDialog_Fr(@NonNull Context context, Runnable submitRunnable) {
        super(context);
        this.submitRunnable_dababy = submitRunnable;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_dababy_bind_dababy_account_tip_fr);
        initView_dababy();
    }

    @SuppressLint({"SetTextI18n", "ClickableViewAccessibility"})
    private void initView_dababy(){

        getWindow().setBackgroundDrawableResource(R.color.transparent);
        getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
        setCanceledOnTouchOutside(false);

        findViewById(R.id.dbdat_ib_close).setOnClickListener(v -> dismiss());

        findViewById(R.id.dbdat_btn_continue_add).setOnClickListener(v -> dismiss());

        xwSD9();
        findViewById(R.id.dbdat_btn_no_more_card).setOnClickListener(v -> {
            dismiss();
            if (submitRunnable_dababy !=null) submitRunnable_dababy.run();
        });

    }


}
